#include "Server.hpp"
#include <iostream>

int main()
{
    Server s;
    s.OpenPipeForRead();

    std::string message;
    while (true)
    {
        if (s.RecvPipe(&message) > 0)
        {
            std::cout << "接受Client发送的:" << message << std::endl;
        }
        else
        {
            break;
        }
    }
    std::cout<<"client 退出，我也退出"<<std::endl;
    s.ClosePipe();
    return 0;
}